import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/web-api/api/localStorage',
    method: 'get',
    params: query
  })
}

export function del(ids) {
  return request({
    url: '/web-api/api/localStorage',
    method: 'delete',
    data: ids
  })
}
// 上传
export function upload(params) {
  return request({
    url: '/web-api/api/localStorage/uploads',
    method: 'post',
    data: params
  })
}

export function edit(data) {
  return request({
    url: '/web-api/api/localStorage',
    method: 'put',
    data
  })
}
// 文书管理
export function amanuensis(query) {
  return request({
    url: '/web-api/api/document',
    method: 'get',
    params: query
  })
}
// 增加现场勘查笔录
export function addAmanuensis(data) {
  return request({
    url: 'web-api/api/document',
    method: 'post',
    data: data
  })
}
// 根据组件查询文书
export function findAmanuensisById(query) {
  return request({
    url: '/web-api/api/document',
    method: 'get',
    params: query
  })
}
// 删除
export function deleteAmanuensis(ids) {
  return request({
    url: '/web-api/api/document',
    method: 'delete',
    data: ids
  })
}

